﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="DoiMatKhau.ascx.cs" Inherits="Control_DoiMatKhau" %>
<style type="text/css">
    .style1
    {
        width: 600px;
    }
    .style2
    {
        width: 500px;
    }
    .style3
    {
        height: 19px;
    }
</style>
<table align="center" cellpadding="0" cellspacing="0" class="style1">
    <tr>
        <td align="center" bgcolor="#0000CC" colspan="2">
            <asp:Label ID="Label1" runat="server" Font-Bold="True" Font-Size="X-Large" 
                ForeColor="White" Text="Thay Đổi Mật Khẩu"></asp:Label>
        </td>
    </tr>
    <tr>
        <td align="center" colspan="2" style="width: 600px" valign="top" width="200px">
            <table align="center" cellpadding="2" cellspacing="2" class="style2">
                <tr>
                    <td width="200px">
                        &nbsp;</td>
                    <td valign="300px">
                        &nbsp;</td>
                </tr>
                <tr>
                    <td align="left" class="style3" width="200px">
                        Tên Đăng Nhập:
                    </td>
                    <td align="left" class="style3" valign="300px">
                        <asp:TextBox ID="txtTenDangNhap" runat="server" Enabled="False" Width="251px"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td align="left" width="200px">
                        Mật Khẩu Cũ:</td>
                    <td align="left" valign="300px">
                        <asp:TextBox ID="txtMatKhauCu" runat="server" Width="251px" TextMode="Password"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                            ControlToValidate="txtMatKhauCu" 
                            ErrorMessage="Mật Khẩu Cũ Không Được Để Trống. " ForeColor="Red">*</asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td align="left" width="200px">
                        Mật Khẩu Mới:
                    </td>
                    <td align="left" valign="300px">
                        <asp:TextBox ID="txtMatKhauMoi" runat="server" Width="251px" 
                            TextMode="Password"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                            ControlToValidate="txtMatKhauMoi" 
                            ErrorMessage="Mật Khẩu Mới Không Được Trống. " ForeColor="Red">*</asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td align="left" width="200px">
                        Nhập Lại Mật Khẩu Mới:
                    </td>
                    <td align="left" valign="300px">
                        <asp:TextBox ID="txtNhapLaiMKMoi" runat="server" Width="251px" 
                            TextMode="Password"></asp:TextBox>
                        <asp:CompareValidator ID="CompareValidator1" runat="server" 
                            ControlToCompare="txtNhapLaiMKMoi" ControlToValidate="txtMatKhauMoi" 
                            ErrorMessage="Mật Khẩu Mới Nhập Lại Không Trùng." ForeColor="Red">*</asp:CompareValidator>
                    </td>
                </tr>
                <tr>
                    <td align="left" width="200px">
                        &nbsp;</td>
                    <td align="left" valign="300px">
                        <asp:ValidationSummary ID="ValidationSummary1" runat="server" ForeColor="Red" />
                    </td>
                </tr>
            </table>
        </td>
    </tr>
    <tr>
        <td width="300px" align="right">
            <asp:Button ID="btnDongY" runat="server" Text="Đông Ý" 
                onclick="btnDongY_Click" />
        </td>
        <td width="300px">
            <asp:Button ID="btnLamLai" runat="server" onclick="btnLamLai_Click" 
                Text="Làm Lại " />
        </td>
    </tr>
</table>


